from django import forms

class LoginForm(forms.Form):
	name = forms.CharField(max_length=20, label="账号", widget=forms.TextInput(attrs={'class':'form-control'}))
	password = forms.CharField(max_length=100, label="密码", widget=forms.PasswordInput(attrs={'class':'form-control'}))

class RegisterForm(forms.Form):
	name = forms.CharField(max_length=20, label="账号", widget=forms.TextInput(attrs={'class':'form-control'}))
	password = forms.CharField(max_length=100, label="密码", widget=forms.PasswordInput(attrs={'class':'form-control'}))
	repeat_password = forms.CharField(max_length=100, label="重复密码", widget=forms.PasswordInput(attrs={'class':'form-control'}))
	code = forms.CharField(max_length=20, label="邀请码", widget=forms.TextInput(attrs={'class':'form-control'}))

class RenameForm(forms.Form):
	now_name = forms.CharField(max_length=20, label="原账号名", widget=forms.TextInput(attrs={'class':'form-control'}))
	password = forms.CharField(max_length=100, label="密码", widget=forms.PasswordInput(attrs={'class':'form-control'}))
	new_name = forms.CharField(max_length=20, label="新账号名", widget=forms.TextInput(attrs={'class':'form-control'}))
	code = forms.CharField(max_length=20, label="改名卡ID", widget=forms.TextInput(attrs={'class':'form-control'}))
